package wlpc;

import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.sql.SQLOutput;

public class demo1 {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress ia = Inet4Address.getByName("192.168.84.1");

        String address = ia.getHostAddress();
        System.out.println(address);

        String name = ia.getHostName();
        System.out.println(name);
    }
}
